<!doctype html>
<html>
<head>
    <meta charset=utf-8>
    <title></title>
    <meta name="robots" content="noindex,nofollow">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="<?=Web_Path?>packs/layui/css/layui.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/font.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/style.css">
    <script src="<?=Web_Path?>packs/js/jquery.min.js"></script>
    <script src="<?=Web_Path?>packs/layui/layui.js"></script>
    <script src="<?=Web_Path?>packs/admin/js/cscms.js"></script>
</head>
<body>
    <span class="layui-breadcrumb" >
        <a ><cite><i class="fa fa-map-marker"></i><?=L('tpl_01')?></cite></a>
        <a href="javascript:;"><?=L('tpl_02')?></a>
        <a href="<?=site_url('sys')?>"><?=L('tpl_03')?></a>
    </span>
    <table class="layui-table">
    	<thead>
        	<tr>
                <th class="phide"><?=L('tpl_04')?></th>
                <th><?=L('tpl_05')?></th>
                <th class="phide"><?=L('tpl_06')?></th>
                <th class="phide"><?=L('tpl_07')?></th>
                <th><?=L('tpl_08')?></th>
                <th><?=L('tpl_09')?></th>
                <th class="phide"><?=L('tpl_10')?></th>
                <th><?=L('tpl_11')?></th>
            </tr>
        </thead>
        <tbody>
        <?php
            if(empty($admin)) echo '<tr><td align="center" height="50" colspan="8">'.L('tpl_19').'</td></tr>';
            foreach ($admin as $row) {
                $rowz=$this->db->query("SELECT name FROM ".CS_SqlPrefix."adminzu where id='".$row->sid."'")->row();
                echo '<tr id="row_'.$row->id.'">
                    <td class="phide">'.$row->id.'</td>
                    <td id="name_'.$row->id.'">'.$row->adminname.'</td>
                    <td class="phide">'.$rowz->name.'</td>
                    <td class="phide">'.$row->lognums.'</td>
                    <td>'.$row->logip.'</td>
                    <td>'.date('Y-m-d H:i:s',$row->logtime).'</td>
                    <td class="phide">'.$this->ip->address($row->logip).'</td>
                    <td class="basedb-more">
            		    <a class="layui-btn layui-btn-normal layui-btn-mini phide" href="'.site_url('sys/log/'.$row->id).'">'.L('tpl_12').'</a>
                        <a class="layui-btn layui-btn-mini" href="javascript:cscms.get_open(\''.site_url('sys/edit/'.$row->id).'\',\''.L('tpl_13').'\',\'500px\',\'300px\');">'.L('tpl_14').'</a>
                        <a class="layui-btn layui-btn-danger layui-btn-mini" href="javascript:cscms.del_one(\''.site_url('sys/del/'.$row->id).'\','.$row->id.')">'.L('tpl_15').'</a>
                        <a class="layui-btn layui-btn-warm layui-btn-mini phide" href="javascript:cscms.get_open(\''.site_url('sys/card/'.$row->id).'\',\''.L('tpl_16').'\',\'500px\',\'300px\');">'.L('tpl_17').'</a>
                    </td>
                </tr> ';
            }
        ?>
        </tbody>
    </table>
    <div class="more_func">
        <a class="layui-btn layui-btn-primary layui-btn-small" href="javascript:cscms.get_open('<?=site_url('sys/add')?>','<?=L('tpl_18')?>','500px','300px');"><i class="fa fa-plus" style="color: #1E9FFF" ></i><?=L('tpl_18')?></a>
    </div>
<script type="text/javascript">
	cscms.init();
</script>
</body>
</html>
